#!/usr/bin/env python
"""
Simple script to set up a uv virtual environment and install dependencies
"""
import os
import subprocess
import sys

def main():
    # Create virtual environment
    print("Creating virtual environment with uv...")
    subprocess.run(["uv", "venv", ".venv"], check=True)
    
    # Install dependencies
    print("Installing dependencies...")
    subprocess.run(["uv", "pip", "install", "-e", "."], check=True)
    
    print("\nSetup complete! You can activate the environment with:")
    if os.name == "nt":  # Windows
        print(".venv\\Scripts\\activate")
    else:  # Unix/Linux/Mac
        print("source .venv/bin/activate")

if __name__ == "__main__":
    main()
